<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('增加图书')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-notice-add">
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">书名：</label>
			<div class="col-sm-10">
				<input id="name" name="name" class="form-control" placeholder="书名" type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">出版社：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="press" placeholder="出版社" name="press" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">概述：</label>
			<div class="col-sm-10">
				<input id="summary" name="summary" class="form-control"  placeholder="概述"type="text" required>
			</div>
		</div>

	</form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "oa/book";

    $("#form-notice-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
        }
    }
</script>
</body>
</html>
